package com.homework;

import javax.lang.model.element.VariableElement;

/**
 * @author :  DongZheng Wang
 * @PROJECT_NAME: java泛型
 * @date :  2022-10-25 16:24
 **/
public class Second<A,B,C> {
    private A a;
    private B b;
    private C c;

    public A getA() {
        return a;
    }

    public void setA(A a) {
        this.a = a;
    }

    public B getB() {
        return b;
    }

    public void setB(B b) {
        this.b = b;
    }

    public C getC() {
        return c;
    }

    public void setC(C c) {
        this.c = c;
    }

    @Override
    public String toString() {
        return "Second{" +
                "a=" + a +
                ", b=" + b +
                ", c=" + c +
                '}';
    }

    public Second(A a, B b, C c) {
        this.a = a;
        this.b = b;
        this.c = c;
    }
}
class Seconds{
    public static void main(String[] args) {
        Second<String, Integer, Integer> ob = new Second("wang",12,23);
        System.out.println(ob);
    }
}
